package com.kaifamiao.demo.d0802;

public class Test {

    public static void main(String[] args) {
        Stack stack = new MyStack(2);

        stack.push('a');

        stack.push('b');

        stack.push('c');


        System.out.println(stack.size()); // 3

        System.out.println(stack.empty()); // false

        char ch = stack.pop();

        System.out.println(ch); // c
        System.out.println(stack.size()); // 2
    }
}
